import { extendClassProps, reactArrayWithUndefined, ReactivePropsToNativePropsAndChanged } from "xbsj-base";
import { ESJVector3D } from "earthsdk3";
import { Editing } from "../Editing";

export class PointEditing extends Editing {
    static override defaults = {
        ...Editing.defaults,
        position: [116.39, 39.9, 0] as [number, number, number], // 经度纬度高度，度为单位
    };
    constructor() {
        super();
    }
}
export namespace PointEditing {
    export const createDefaultProps = () => ({
        ...Editing.createDefaultProps(),
        position: reactArrayWithUndefined<ESJVector3D>(undefined),
    });
}
extendClassProps(PointEditing.prototype, PointEditing.createDefaultProps);
export interface PointEditing extends ReactivePropsToNativePropsAndChanged<ReturnType<typeof PointEditing.createDefaultProps>> { }